﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YTCMS.Core
{
    public class CollectionHelper
    {
        public static string ArrayToString(object[] args)
        {
            string[] results = new string[args.Length];
            int index = 0;
            foreach (object arg in args)
            {
                Type type = arg.GetType();
                results[index] = type.ToString();
                index++;
            }
            return string.Join(",", results);
        }

        public static string ArrayToString(Type[] args)
        {
            string[] results = new string[args.Length];
            int index = 0;
            foreach (Type arg in args)
            {
                results[index] = arg.ToString();
                index++;
            }
            return string.Join(",", results);
        }
    }
}
